<template>
  <div class="not-found">
    <h1>404 - 页面不存在</h1>
    <p>抱歉，您访问的页面不存在。</p>
    <div class="nav-links">
      <router-link to="/" class="nav-link">返回首页</router-link>
    </div>
  </div>
</template>

<script setup>
import { onMounted } from 'vue';

onMounted(() => {
  console.log('404页面已加载');
});
</script>

<style scoped>
.not-found {
  padding: 20px;
  text-align: center;
}

.nav-links {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.nav-link {
  padding: 10px 20px;
  background: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-link:hover {
  background: #545b62;
}
</style>
